package com.binvshe.binvshe.common.web;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.binvshe.binvshe.R;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

public class WebActivity extends BaseActivity {
    private String mUrl;
    private CommonWebviewFragment mWebviewFragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        hideToolbar();
        mUrl ="http://h5.binvshe.com/#/lottery/1";
        mWebviewFragment = CommonWebviewFragment.newInstance(mUrl);
        getSupportFragmentManager().beginTransaction().add(R.id.flyWebview, mWebviewFragment).commit();
    }

    public static void start(Activity activity){
        Intent intent = new Intent(activity, WebActivity.class);
        activity.startActivity(intent);
    }
    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_web,null);
    }
}
